package com.douqu.game.auth.server;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-08-25 16:16
 */
public class WorldManager {

    private static WorldManager instance = null;

    private WorldManager(){}

    public static WorldManager getInstance()
    {
        if(instance == null)
            instance = new WorldManager();

        return instance;
    }

    private ExecutorService service = Executors.newScheduledThreadPool(10);

    public void startThread(Runnable runnable)
    {
        service.execute(runnable);
    }






}
